
<%--
  Created by IntelliJ IDEA.
  User: hp
  Date: 2025/11/7
  Time: 20:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工信息管理系统 - 登录</title>
    <link rel="stylesheet" href="<%= request.getContextPath() %>/css/style.css">
</head>
<body>
<div class="login-container">
    <h2>员工信息管理系统</h2>
    <form action="<%= request.getContextPath() %>/LoginServlet" method="post">
        <div class="form-group">
            <label for="username">用户名：</label>
            <input type="text" id="username" name="username" required>
        </div>
        <div class="form-group">
            <label for="password">密码：</label>
            <input type="password" id="password" name="password" required>
        </div>
        <div class="error-msg"><%= request.getAttribute("errorMsg") != null ? request.getAttribute("errorMsg") : "" %></div>
        <button type="submit" class="btn-login">登录</button>
    </form>
</div>
</body>
</html>
</body>
</html>
